export const tickets = [
    {
        id: 'T2024001',
        title: '商品无法下单',
        status: 'open', // 待处理
        priority: 'high',
        customer: '王五',
        createdAt: '2024-06-10 09:30',
        assignee: '客服A',
        coAssignees: [
            { id: 'a2', name: '客服B', avatar: 'https://randomuser.me/api/portraits/men/32.jpg' }
        ],
        description: '用户反馈商品无法下单，提示库存不足。',
        tags: ['售前', '下单'],
        attachments: [
            { name: '截图1.png', url: 'https://dummyimage.com/120x80/409eff/fff&text=截图', type: 'image' }
        ],
        timeline: [
            { time: '2024-06-10 09:30', action: '创建工单', operator: '王五', remark: '' },
            { time: '2024-06-10 09:35', action: '分配处理人', operator: '系统', remark: '分配给客服A' }
        ],
        comments: [
            { id: 1, author: '客服A', content: '已收到，正在处理。', time: '2024-06-10 09:40', type: 'public' },
            { id: 2, author: '王五', content: '麻烦尽快处理，谢谢！', time: '2024-06-10 09:41', type: 'public' }
        ],
        customFields: [
            { key: '订单号', value: 'O202312345' }
        ],
        history: [
            { assignee: '客服A', fromStatus: 'open', toStatus: 'processing', time: '2024-06-10 09:35' }
        ]
    },
    {
        id: 'T2024002',
        title: '订单退款未到账',
        status: 'processing', // 处理中
        priority: 'medium',
        customer: '李四',
        createdAt: '2024-06-09 15:20',
        assignee: '客服B',
        coAssignees: [],
        description: '用户申请退款，长时间未到账。',
        tags: ['售后', '退款'],
        attachments: [],
        timeline: [
            { time: '2024-06-09 15:20', action: '创建工单', operator: '李四', remark: '' },
            { time: '2024-06-09 15:25', action: '分配处理人', operator: '系统', remark: '分配给客服B' }
        ],
        comments: [],
        customFields: [],
        history: []
    },
    {
        id: 'T2024003',
        title: '发票信息有误',
        status: 'resolved', // 已完成
        priority: 'low',
        customer: '张三',
        createdAt: '2024-06-08 11:10',
        assignee: '客服C',
        coAssignees: [],
        description: '用户反馈发票抬头错误。',
        tags: ['发票'],
        attachments: [],
        timeline: [
            { time: '2024-06-08 11:10', action: '创建工单', operator: '张三', remark: '' },
            { time: '2024-06-08 11:15', action: '分配处理人', operator: '系统', remark: '分配给客服C' }
        ],
        comments: [],
        customFields: [],
        history: []
    },
    {
        id: 'T2024004',
        title: '收货地址无法保存',
        status: 'closed', // 已关闭
        priority: 'medium',
        customer: '小明',
        createdAt: '2024-06-07 17:45',
        assignee: '客服A',
        coAssignees: [],
        description: '用户无法保存新收货地址。',
        tags: ['地址'],
        attachments: [],
        timeline: [
            { time: '2024-06-07 17:45', action: '创建工单', operator: '小明', remark: '' },
            { time: '2024-06-07 17:50', action: '分配处理人', operator: '系统', remark: '分配给客服A' }
        ],
        comments: [],
        customFields: [],
        history: []
    }
]

export const quickReplies = [
    { category: 'greeting', content: '您好，请问有什么可以帮您？' },
    { category: 'processing', content: '您的问题正在处理中，请稍等。' },
    { category: 'resolved', content: '您的问题已解决，如有疑问请随时联系。' },
    { category: 'followup', content: '请问问题是否已解决？如需进一步协助请告知。' }
]

export const knowledgeBase = [
    { id: 1, category: '支付', title: '支付失败常见原因', content: '1. 网络异常 2. 银行卡余额不足 3. 第三方支付维护' },
    { id: 2, category: '订单', title: '订单无法提交', content: '请检查商品库存、收货地址是否完整。' },
    { id: 3, category: '退款', title: '退款未到账处理流程', content: '1. 确认退款申请已提交 2. 银行处理时间一般为1-3个工作日' }
]

export const assignees = [
    { id: 'a1', label: '客服A', value: '客服A', avatar: 'https://randomuser.me/api/portraits/men/31.jpg' },
    { id: 'a2', label: '客服B', value: '客服B', avatar: 'https://randomuser.me/api/portraits/men/32.jpg' },
    { id: 'a3', label: '客服C', value: '客服C', avatar: 'https://randomuser.me/api/portraits/women/33.jpg' }
] 